package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.jsola.core.dto.BaseDTO;

import javax.validation.constraints.NotNull;

import static org.jsola.hr.example.EmpInfoExample.N_SALARY_RULE_ID;
import static org.jsola.hr.example.EmpInfoExample.N_SERVICE_FEE_RULE_ID;

/**
 * 修改工价规则
 *
 * @author wcl
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "修改【工价规则】的参数")
@Data
public class SalaryRuleDTO extends BaseDTO {

    @ApiModelProperty(notes = "员工id")
    @NotNull(message = "员工id不能为空")
    private String empId;

    @ApiModelProperty(notes = "公司id")
    @NotNull(message = "公司id不能为空")
    private String companyId;

    @ApiModelProperty(notes = N_SALARY_RULE_ID)
    private String salaryRuleId;

    @ApiModelProperty(notes = N_SERVICE_FEE_RULE_ID)
    private String serviceFeeRuleId;
}
